<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>srpy</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th bgcolor="#70b0f0" class="navbar-select"
          >&nbsp;&nbsp;&nbsp;Home&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/srpy/">Simple Remote Python</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;srpy
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="srpy-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== PACKAGE DESCRIPTION ==================== -->
<h1 class="epydoc">Package srpy</h1><p class="nomargin-top"><span class="codelink"><a href="srpy-pysrc.html">source&nbsp;code</a></span></p>
<p>Simple Remote Python (SRPy) intends to harness the power of the Python
  by allowing multiple python programs (instances) to seamlessly 
  communicate and share information between each other. As such, each CPU 
  (or core) in each computer can be considered as an individual that can 
  request for other individuals to store information or run processing 
  tasks. In this context, SRPy abstracts itself from the physical 
  boundaries between processors and computers by looking at them simply as 
  volunteer workers that are able to deal with workloads - this workers can
  even work in a social manner by communicating with each other on a 
  non-centralized way, sharing information and processing requests.</p>
  <p><b>Quick Start</b> - <a name="index-Starting_a_Server"></a><i 
  class="indexterm">Starting a Server</i>:</p>
  <ul>
    <li>
      Create a server on a computer by running the srpyapp.py script.
    </li>
  </ul>
  <p>Example:</p>
  <p><code>toseinin:srpy paxcal$ python2.5 srpy/srpyapp.py</code></p>
  <p><code>SRPy Server - Simple Remote Python, Network Server</code></p>
  <p><code>http://code.google.com/p/srpy/ - updates, documentation, 
  examples and support</code></p>
  <p><code>Starting Basic Server...</code></p>
  <p><code>URI info:</code></p>
  
  <p><code>PYRO://192.168.1.23:7829/c0a801171909517cdef4645b78192636</code></p>
  <p><code>Write 'quit' or 'exit' to exit...</code></p>
  <ul>
    <li>
      Copy the <a name="index-URI_info"></a><i class="indexterm">URI 
      info</i> as it will be needed when connecting with a client.
    </li>
  </ul>
  <p><i>Note:</i> run the server with '--help' to see a list of available 
  options, srpyapp.py is able to generate multiple servers in one go, 
  optimally you should have one server per CPU available.</p>
  <p><b>Quick Start</b> - <a name="index-Connecting_to_a_Server"></a><i 
  class="indexterm">Connecting to a Server</i>:</p>
  <p>Here's an example of connecting to the created server:</p>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">import</span> srpy
<span class="py-prompt">&gt;&gt;&gt; </span>pyeng=srpy.PythonEngine(<span class="py-string">&quot;PYRO://192.168.1.23:7829/c0a801171909517cdef4645b78192636&quot;</span>)</pre>
  <p>Check the <a href="srpy.srpyclient.PythonEngine-class.html" 
  class="link">PythonEngine</a> and <a 
  href="srpy.srpyclient.PythonEngine-class.html" class="link">EngBox</a> 
  classes for more info on how to work with remote python engines.</p>

<!-- ==================== SUBMODULES ==================== -->
<a name="section-Submodules"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Submodules</span></td>
</tr>
  <tr><td class="summary">
  <ul class="nomargin">
    <li> <strong class="uidlink"><a href="srpy.srpyclient-module.html">srpy.srpyclient</a></strong>: <em class="summary">Provides tools to connect and control remote python instances</em>    </li>
    <li> <strong class="uidlink"><a href="srpy.srpyinfo-module.html">srpy.srpyinfo</a></strong>: <em class="summary">Simple Remote Python: http://code.google.com/p/srpy/
Copyright (c) 2009, Ricardo Henriques
All rights reserved.</em>    </li>
  </ul></td></tr>
</table>

<br />
<p class="indent-wrapped-lines"><b>Imports:</b>
  <span title="sys">sys</span>,
  <span title="os">os</span>,
  <a href="srpy.srpyclient.EngBox-class.html" title="srpy.srpyclient.EngBox">EngBox</a>,
  <a href="srpy.srpyclient.PythonEngine-class.html" title="srpy.srpyclient.PythonEngine">PythonEngine</a>,
  <span title="srpy.srpyapp.newSubEngine">newSubEngine</span>,
  <span title="srpy.srpyapp.detectNCPUs">detectNCPUs</span>,
  <span title="srpy.srpyinfo.version">version</span>,
  <span title="srpy.srpyinfo.copyright">copyright</span>,
  <span title="srpy.srpyapp">srpyapp</span>,
  <a href="srpy.srpyclient-module.html" title="srpy.srpyclient">srpyclient</a>,
  <a href="srpy.srpyinfo-module.html" title="srpy.srpyinfo">srpyinfo</a>
</p><br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th bgcolor="#70b0f0" class="navbar-select"
          >&nbsp;&nbsp;&nbsp;Home&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/srpy/">Simple Remote Python</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Fri Mar 27 12:24:25 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
